Skip to content

fix(release): add @anthropic-ai/sdk devDependency for the changelog step#205

Merged
vreshch merged 1 commit into
masterfrom
fix/changelog-deterministic
Jun 26, 2026
Merged

fix(release): add @anthropic-ai/sdk devDependency for the changelog step#205
vreshch merged 1 commit into
masterfrom
fix/changelog-deterministic

Conversation

@vreshch

@vreshch vreshch commented Jun 26, 2026

Copy link
Copy Markdown
Member

Why

release-prepare's Generate changelog with Claude step imports @anthropic-ai/sdk,
but it was never listed as a dependency, so CI's npm ci never installed it. The step
crashed with ERR_MODULE_NOT_FOUND, the release PR was never created, and the package
stayed unpublished (so npx @agentage/cli setup 404s).

What

  • Add @anthropic-ai/sdk to devDependencies (release tooling only).
  • The Claude-generated changelog is kept exactly as-is. ANTHROPIC_API_KEY is already
    provided as a CI secret.

Why devDependencies (and not a runtime dep)

  • It is only used by scripts/generate-changelog.js at release time; it is never imported
    by src/ and never shipped to users.
  • Runtime dependencies stay exactly chalk/commander/open, so package-guard passes.

Verification

  • npm run verify green (49 tests, build, lint, prettier); package-guard green.

Unblocks: re-run release-prepare -> 0.0.2 release PR (with Claude changelog) -> merge -> publish.

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

🎉 PR Validation ✅ PASSED

Commit: 5fc1260263c3634089acc261baa1699a42ece47a
Branch: fix/changelog-deterministic

Checks:

  • ✅ Release guard (no version/changelog changes)
  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-06-26T01:09:45.305Z

@vreshch vreshch marked this pull request as ready for review June 26, 2026 01:03
The 'Generate changelog with Claude' step imports @anthropic-ai/sdk, but it was never a dependency, so CI's npm ci did not install it and the step crashed (ERR_MODULE_NOT_FOUND) - blocking every release PR and the publish. Add it to devDependencies (release tooling only: not shipped, not a runtime dep, package-guard unaffected). ANTHROPIC_API_KEY is already a CI secret. Keeps the Claude-generated changelog.
@vreshch vreshch force-pushed the fix/changelog-deterministic branch from 45f1a4c to 5fc1260 Compare June 26, 2026 01:09
@vreshch vreshch changed the title fix(release): deterministic changelog, drop @anthropic-ai/sdk fix(release): add @anthropic-ai/sdk devDependency for the changelog step Jun 26, 2026
@vreshch vreshch merged commit 951acb5 into master Jun 26, 2026
2 checks passed
@vreshch vreshch deleted the fix/changelog-deterministic branch June 26, 2026 01:18
vreshch added a commit that referenced this pull request Jun 26, 2026
## Why
After #205 fixed the missing dependency, `release-prepare`'s changelog
step still
failed — the pinned model `claude-sonnet-4-20250514` reached
**end-of-life on
2026-06-15** and the API now returns `404 not_found_error` for it.

## What
- Point the changelog generator at the current Sonnet:
`claude-sonnet-4-6`.
- `messages.create` shape is unchanged; one-line swap.

Unblocks: re-run `release-prepare` -> `0.0.2` PR (Claude-generated
changelog) -> merge -> publish.
@vreshch vreshch mentioned this pull request Jun 26, 2026
vreshch added a commit that referenced this pull request Jun 26, 2026
## Release v0.0.2

First **publishable** build of the Memory-client CLI. `0.0.1` was
unpublished and is permanently burned on npm, so this is the version
that ships.

### What's in it
- `agentage setup` (OAuth 2.1 + PKCE + DCR sign-in) and `agentage
status` - verified working end-to-end against dev.
- Release-pipeline repairs (#205 `@anthropic-ai/sdk` devDep, #206 live
changelog model) that unblock publishing.

### On merge
Merging this (commit subject `Release v0.0.2`) trips the publish gate ->
`publish.yml` -> `@agentage/cli@0.0.2` on npm -> `npx @agentage/cli
setup` works.

> Note: this PR was created manually because `release-prepare`'s
PR-authoring step failed on an **expired `RELEASE_PAT`/`PAT_TOKEN`**
(HTTP 401). Rotate that secret to restore the automated release flow.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant